<?php

namespace YouBaoLian\Application\Response;

use YouBaoLian\Http\Response;

class VehicleQueryPriceStatusResponse extends Response
{

    /**
     * 车牌号
     * @var string $licenseNo
     */
    private $licenseNo = '';

    /**
     * 车架号
     * @var string $vehicleFrameNo
     */
    private $vehicleFrameNo = '';

    /**
     * 车险信息
     * @var array $insuredList
     */
    private $insuredList = [];

    /**
     * 非车信息
     * @var array $productPlan
     */
    private $productPlan = [];


    public function build(): self
    {
        parent::build();

        $this->licenseNo = $this->getBizContent('licenseNo');
        $this->vehicleFrameNo = $this->getBizContent('vehicleFrameNo');
        $this->insuredList = $this->getBizContent('insuredList', []);
        $this->productPlan = $this->getBizContent('productPlan', []);

        return $this;
    }

    /**
     * @return string
     */
    public function getLicenseNo(): string
    {
        return $this->licenseNo;
    }

    /**
     * @return string
     */
    public function getVehicleFrameNo(): string
    {
        return $this->vehicleFrameNo;
    }

    /**
     * @return array
     */
    public function getInsuredList(): array
    {
        return $this->insuredList;
    }

    /**
     * @return array
     */
    public function getProductPlan(): array
    {
        return $this->productPlan;
    }
}
